package com.sg.business.model;

import org.bson.types.ObjectId;

import com.mobnut.db.model.ModelService;
import com.mobnut.db.model.PrimaryObject;

public class ProjectProgressStep extends PrimaryObject implements
		IProjectRelative {

	public static final String F_PARENT_ID = "parent_id";

	@Override
	public Project getProject() {
		ObjectId projectId = getProjectId();
		if (projectId != null) {
			return ModelService.createModelObject(Project.class, projectId);
		}
		return null;
	}

	public ObjectId getProjectId() {
		return getObjectIdValue(F_PROJECT_ID);
	}

}
